package com.nuoniu.sibanyun.mapper.erp.barcode;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.erp.barcode.ErpBarcodeInOut;
import com.nuoniu.sibanyun.entity.erp.barcode.vo.BarcodeInOutStatisticVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 条码出入库 Mapper 接口
 * </p>
 *
 * @author 白强
 * @since 2021-11-30
 */
public interface ErpBarcodeInOutMapper extends BaseMapper<ErpBarcodeInOut> {

    /**
     * 根据 面积计算表主表ID 查询 明细出入库情况
     * @param companyId
     * @param sourceVoucherType
     * @param sourceVoucherId
     * @return
     */
    List<BarcodeInOutStatisticVo> getInOutRecord(Integer companyId, String sourceVoucherType, Integer sourceVoucherId);


    /**
     * 根据 面积计算表主表ID 查询 出入库情况
     * @param companyId
     * @param sourceVoucherType
     * @param sourceVoucherId
     * @return
     */
    BarcodeInOutStatisticVo getBatchInOutRecord(Integer companyId, String sourceVoucherType, Integer sourceVoucherId);

}
